<template>
  <div id="app">
    <ResetApi />
    <TGet />
    <hr />
    <FormApi />
  </div>
</template>

<script>
// const url = "https://api.github.com/search/repositories?q=v&sort=stars";
// axios
// import axios from "axios";
import ResetApi from "./components/ResetApi";
import TGet from "./components/TGet";
import FormApi from "./components/FormApi";
export default {
  name: "App",
  data() {
    return {};
  },
  /* mounted() {
    const url = "https://api.github.com/search/repositories?q=v&sort=stars";
    axios
      .get(url)
      .then(response => {
        console.log(response);
      })
      .catch(err => {
        console.log(err);
      });
  }, */
  /* async mounted() {
    const url = "https://api.github.com/search/repositories?q=v&sort=stars";
    try {
      const result = await axios.get(url);
      console.log(result);
    } catch (err) {
      console.log(err);
    }
  }, */
  components: {
    ResetApi,
    TGet,
    FormApi
  },

  methods: {}
};
</script>

<style></style>
